package com.healthy.entity;

import java.util.HashSet;
import java.util.List;
import java.util.Set;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

/**
 * @author Maple.Chen
 * @date 2020年6月10日
 * @description <p>用户收藏专栏实体类</p>
 */
@JsonIgnoreProperties(value = {"handler"})
public class YgColumn implements java.io.Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = 3151306097766155615L;
	// 专栏主键，UUID
	private String id;  
	// 专栏名称
	private String name;  
	// 与用户实体类一对一关联
	private YgUsers ygUsers;    
	// 与文章一对多关联
//	private Set<YgDocument> ygDocument = new HashSet<>();
	private List<YgDocument> YgDocument;
	
	public YgColumn(){}
	
	
	
    public YgColumn(String id, String name, YgUsers ygUsers, List<com.healthy.entity.YgDocument> ygDocument) {
		super();
		this.id = id;
		this.name = name;
		this.ygUsers = ygUsers;
		YgDocument = ygDocument;
	}



//	public YgColumn(String id, String name, YgUsers ygUsers, Set<YgDocument> ygDocument) {
//		super();
//		this.id = id;
//		this.name = name;
//		this.ygUsers = ygUsers;
//		this.ygDocument = ygDocument;
//	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public YgUsers getYgUsers() {
		return ygUsers;
	}

	public void setYgUsers(YgUsers ygUsers) {
		this.ygUsers = ygUsers;
	}

//	public Set<YgDocument> getYgDocument() {
//		return ygDocument;
//	}
//
//	public void setYgDocument(Set<YgDocument> ygDocument) {
//		this.ygDocument = ygDocument;
//	}
	
	

	public static long getSerialversionuid() {
		return serialVersionUID;
	}

	public List<YgDocument> getYgDocument() {
		return YgDocument;
	}



	public void setYgDocument(List<YgDocument> ygDocument) {
		YgDocument = ygDocument;
	}



	@Override
	public String toString() {
		return "YgColumn [id=" + id + ", name=" + name + ", ygUsers=" + ygUsers + ", YgDocument=" + YgDocument + "]";
	}



//	@Override
//	public String toString() {
//		return "YgColumn [id=" + id + ", name=" + name + ", ygUsers=" + ygUsers + ", ygDocument=" + ygDocument + "]";
//	}
	
}
